package com.cnsuning.jobtool.jobtools.transfer;


import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;

/**
 * 〈一句话功能简述〉
 *
 * @author 88446845
 * @date 2019/12/20
 */
public class Test {

/*    public static void main(String[] args) {
        String createdTime = "CREAT_TIME哒哒哒哒哒哒" ;
        List<String> tableList = Utils.getTableName(createdTime);
        for(String table : tableList){
            System.out.println("删除"+table+"开始");
            deletedate( table,"CREATED_BY");
            System.out.println("删除"+table+"完成");
        }
        System.out.println("任务执行结束========>>>>>");
    }*/





    /**
     * 更新数据
     *
     * @param connection
     * @param sql
     * @return
     * @throws SQLException
     */
    private static int executeUpdate(Connection connection, String sql) throws SQLException {
        PreparedStatement preparedStatement = connection.prepareStatement(sql);
        return preparedStatement.executeUpdate();
    }
}
